The largest Interview Solution Library on the web


« Previous | 1 | 2 | 3 | Next »
A content pane is the simplest layout manager. It is just a grouping of other widgets.
It does not enforce any particular layout. In a way, it acts just like a <div> element. ContentPane does have a powerful feature. It can pull in content from an external URL and populate its internal content asynchronously.
This allows you to load content into the pane on demand.
Copy template.html and paste it as content_pane.html. Open content_pane.html.

Add a dojo.require() statement load in the code for the widget.This is shown in boldface below.
<script type="text/javascript">
dojo.require("dijit.form.Button");
dojo.require("dijit.layout.ContentPane");
</script>
Within the body tag, add a content pane widget as shown below in bold face.
<body class="tundra">
<div dojoType="dijit.layout.ContentPane"
style="background: red">
<p>Hello World</p>
</div>
</body>
Create new html page : content1.html
<h3>This is content 1</h3>
<p>Some content here</p>
In content_pane.html chage below code :
<div dojoType="dijit.layout.ContentPane"
style="background: red"
href="content1.html">
Loading ...
</div>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com